package cn.kgc.ffzw.test;

public class Suv extends Car {
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    String name="SUV";


    public Suv() {
    }

    public Suv(Integer apeed, Integer state) {
        super(apeed, state);
    }
    public void showLog(){
        System.out.println(this.getName()+"亮品牌后的平均速度为"+(super.getSpeed()+3));
    }

    @Override
    public void run() {
        System.out.println(this.getName()+"的平均速度为"+super.getSpeed());
        showLog();
        System.out.println("行驶10000米使用了"+10000/(super.getSpeed()+3)+"秒");
    }
}
